var NewsCon = iClass.get("News");
iClass.method("Admin", {
	getNewsList: function(num, page) {
		var new_list_info = NewsCon.getList(num, page);
		return new_list_info;
	},
	addNews: function(new_info) {
		var news = new NewsCon(new_info);
		return news;
	},
	//代码片段
	_getNews: function(news_id) {
		var news = NewsCon.get(news_id);
		if (!news) {
			Throw("找不到指定新闻");
		}
		return news
	},
	updateNews: function(news_id, news_info) {
		var news = this._getNews(news_id);
		news.setInfo(news_info);
		return news;
	},
	removeNews: function(news_id) {
		var news = this._getNews(news_id);
		news.remove();
	}
})